package com.cyrus.vueboot.utils;

import com.cyrus.vueboot.pojo.auth.Authority;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Cyrus
 * @CreateDate: 2020/11/15
 */
public class SplitUtil {
    public static List<String> Split(Authority authority) {
        String aHasAuth = authority.getAHasAuth();
        String[] auths = aHasAuth.split(":");
        List list = new ArrayList();
        for (String auth : auths) {
            list.add(auth);
        }
        return list;
    }
}
